package polymorphic.homework1;

public class Dog extends Animal {
    public Dog() {
    }

    public Dog(String name) {
        super(name);
    }

    public void lookHouse(){
        System.out.println(this.getName()+"正站门前来回走动……");
    }

    @Override
    public void eat() {
        System.out.println(this.getName()+"正在啃咬骨头……");
    }

    @Override
    public void cry() {
        System.out.println(this.getName()+"正在喔喔大叫……");
    }
}
